<template>
    <div>
        <van-list
                v-model="loading"
                :finished="finished"
                finished-text="没有更多了"
                @load="onLoad"
            >
            <van-cell v-for="item in searchlists" :key="item" :title="item" @click="fun(item)" />
        </van-list>
    </div>
</template>

<script>
import {goods_list} from "@/request/home.js"
export default {
    name: 'Wjm0714Searchlist',

    data() {
        return {
            list: [],
            loading: false,
            finished: false,
        };
    },

    mounted() {
        
    },
     beforeMount(){
        console.log(this);
        // console.log(this.$bus);
        this.$bus.$on("asd",(v)=>{
            console.log(v);
        });
    },
    methods: {
        onLoad(){
            
        },
        // 搜索列表
        fun(item){
            console.log(this);
            console.log(312);
            this.$store.commit('changeitem',item);
            this.$store.commit('Sshow',3);
            this.$emit('goodsli',item)
        }
    },
    props:['searchlists']
};
</script>

<style lang="less" scoped>
    
</style>